/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef CHIP_PCA9545_H
#define CHIP_PCA9545_H

#include "internal/bus/bus_base/bus.h"
#include "internal/chip/chip_base/chip.h"
#include <mc/engine.h>
#include <memory>

namespace dev {

class MC_API chip_pca9545 : public chip_base {
public:
    bool     init(mc::mutable_dict& csr_object);
    int32_t open_channel(std::shared_ptr<bus_base> bus) override;

private:
    uint8_t m_channel_num;
};

} // namespace dev

#endif // CHIP_PCA9545_H